package com.example.sens.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.example.sens.entity.Conclusion;
import com.example.sens.entity.Performance;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface PerformanceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Performance record);

    int insertSelective(Performance record);

    Performance selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Performance record);

    int updateByPrimaryKey(Performance record);

    List<Performance> getByPage(Page page);

    List<Performance> findByQuizIdAndUserId(@Param("quizIdList") List<Long> quizIdList, @Param("userId") Long userId);

    List<Performance> findByQuizIds(@Param("quizIdList") List<Long> quizIds);
}